<?php
$notcat_url = trailingslashit(get_template_directory_uri());
$notcat_path = trailingslashit(TEMPLATEPATH);

$child_path = trailingslashit(get_stylesheet_directory());
$child_url = trailingslashit(get_bloginfo('stylesheet_directory'));


define( 'NOTCAT_URL', $notcat_url );
define( 'NOTCAT_PATH', $notcat_path );
define( 'CHILD_URL', $child_path );
define( 'CHILD_PATH', $child_url );
preg_match('/\/([^\/]+)\/$/', $child_path, $childmatches);
define( 'CHILD_DIRNAME', $childmatches[1]);
